learn the basics to graph sine and cosine